package com.workplan.client.widgets.historyitem;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.general.client.action.ActionHandler;
import com.general.client.basewidget.BasePresnter;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.HasText;
import com.workplan.shared.datamodel.employeeshift.EmployeeShiftDataModel;

public interface HistoryItemPresenter extends BasePresnter {

	void setModel(EmployeeShiftDataModel dataModel);

	HandlerRegistration addRemoveActionHandler(ActionHandler handler);

	public interface Display extends WidgetDisplay {
		HandlerRegistration addRemoveActionHandler(ActionHandler handler);

		HasText getDate();

		HasText getTotalTime();

		HasText getStartTime();

		HandlerRegistration addStartTimeChangeHandler(
				ValueChangeHandler<String> handler);

		HasText getEndTime();

		HandlerRegistration addEndTimeChangeHandler(
				ValueChangeHandler<String> handler);

	}

}
